package com.example.tests;

import java.util.Set;

import org.testng.annotations.Test;

import com.example.fw.GroupObject;

public class GroupModificationTests extends TestBase {
	
	@Test
	public void testFirstGroupCanBeModified() throws Exception {
		int i = 1;
		Set<GroupObject> oldList = app.getGroupHelper().getGroups();
		GroupObject targetGroup = app.getGroupHelper().getGroupWithNumber(i);
		GroupObject modifiedGroup = new GroupObject()
			.setName("fgdgdfg")
			.setHeader("gdfgfdg")
			.setFooter("gdfgdfgd");
		app.getGroupHelper().modifyGroup(i, modifiedGroup);
		Set<GroupObject> newList = app.getGroupHelper().getGroups();
		verifyGroupModified(oldList, targetGroup, modifiedGroup, newList);
	}
	
}